package ${basePackage}.${mapper};

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
<#if haveBigDecimal>
import java.math.BigDecimal;
</#if>
<#if haveDate>
import java.util.Date;
</#if>

import ${basePackage}.${entity}.${className}Entity;
import ${basePackage}.vo.${className}VO;

/**
 * ${comment}Mapper
 * @author ${author}
 * @date ${createTime}
 */
@Repository
public interface ${className}Mapper extends BaseMapper${r'<'}${className}Entity> {

    /**
     * 查询列表
     *
     * @param pojo 查询过滤参数
     * @return 列表结果
     **/
    List${r'<'}${className}VO> select(@Param(value = "pojo") ${className}VO pojo);

    /**
     * 查询一条数据
     *
    <#list pkColumns as column>
     * @param ${column.attrName} ${column.columnComment}
    </#list>
     * @return 一条数据
     **/
    ${className}VO selectByPk(<#list pkColumns as column>@Param(value = "${column.attrName}") ${column.attrType} ${column.attrName}<#if column_has_next>, </#if></#list>);
}